<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="David Rodr&iacute;guez Condezo">
<meta name="keywords"
        content="David Rodriguez Condezo Rodr&iacute;guez Curriculum Hoja de vida consultoria ti">
<meta name="author" content="David Rodr&iacute;guez Condezo">

<title>Ronny Visa HU04</title>

<script src="js/jquery-1.10.2.js"></script>
<script src="js/bootstrap-3.2.0.js"></script>

<link href="css/bootstrap-3.2.0.css" rel="stylesheet">
<link href="css/bootstrap-theme-3.2.0.css" rel="stylesheet">
<link href="css/offcanvas.css" rel="stylesheet">

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->

</head>

<body>


        <!-- INICIO DEL MENU PRINCIPAL -->
        <div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
                <div class="container">
                        <div class="navbar-header">
                                <button type="button" class="navbar-toggle" data-toggle="collapse"
                                        data-target=".navbar-collapse">
                                        <span class="sr-only">Toggle navigation</span> <span
                                                class="icon-bar"></span> <span class="icon-bar"></span> <span
                                                class="icon-bar"></span> <span class="icon-bar"></span>
                                </button>
                                <a class="navbar-brand" href="index.php">Logo</a>
                        </div>
                        <div class="collapse navbar-collapse">
                                <ul class="nav navbar-nav">
                                        <li class="active"><a href="hu04.jsp">Caso 1</a></li>
                                        <li><a href="hu04.jsp">Caso 2</a></li>
                                        
                                </ul>
                        </div>
                        <!-- /.nav-collapse -->
                </div>
                <!-- /.container -->
        </div>
        <!-- /.navbar -->
        <!-- FIN DEL MENU PRINCIPAL -->

        <div class="container">

                <div class="row">


                        <div class="col-md-12">

                                <form class="form-horizontal well" method="post"
                                        action="ParticiparVotar">

                                        <fieldset>
                                                <legend>Historia de Uso 04 - Participar y Votar por Ideas</legend>

                                                <div class="control-group">
                                                        <label class="control-label" for="input01">Seleccione el codigo de la Idea:</label>
                                                        <div class="controls">

                                                                <input required type="text" class="input-medium" id="base" name="codigoidea">

                                                        </div>
                                                </div>

                                                <div class="control-group">
                                                        <label class="control-label" for="input01">Ingrese su Calificacion:</label>
                                                        <div class="controls">
                                                                <div class="input-prepend">

                                                                        <select required name="calificacion">
                                                                        	<option value="1">1 Punto(s)</option>
                                                                        	<option value="2">2 Punto(s)</option>
                                                                        	<option value="3">3 Punto(s)</option>
                                                                        	<option value="4">4 Punto(s)</option>
                                                                        	<option value="5">5 Punto(s)</option>
                                                                        </select>
                                                                        
                                                                </div>
                                                        </div>
                                                </div>
                                                
                                                <div class="control-group">
                                                        <label class="control-label" for="input01">Escriba sus comentarios a continuacion...</label>
                                                        <div class="controls">

                                                                <textarea name="comentarios" rows="10" cols="40">Me parecio una excelente idea !!!
                                                                </textarea>

                                                        </div>
                                                </div>

                                                <div class="form-actions">
                                                        <button type="submit" class="btn btn-primary">Enviar</button>
                                                        <button type="reset" class="btn">Cancelar</button>
                                                </div>

<%
String CodIdea = (String)request.getAttribute("ResultadoCodIdea");
Integer Puntuacion = (Integer)request.getAttribute("ResultadoCalificacion");
String Comentarios = (String)request.getAttribute("ResultadoComentarios");

if (CodIdea != null) {
        
        out.println("El codigo de la idea es: "  + CodIdea + ". La puntuacion indicada es: (" + Puntuacion + ").");
        out.println("El usuario ha incluido el comentario siguiente: ("  + Comentarios + ").");
}
%>


                                        </fieldset>
                                </form>
                                

                        </div>

                </div>

                <footer>
                        <p>&copy; Company 2014</p>
                </footer>

        </div>
        <!-- /container -->

</body>
</html>
